import request from '@/utils/request'

/**
 * 从TOP获取信息
 * @param {obj} data daa
 */
export function getTopInfoStaff(data) {
  return request({
    url: `/call-center/api/v1/topInfo/staff`,
    method: 'GET',
    params: data
  })
}

/**
 * 获取零售订单明细
 * @param {string} saleOrderCode 订单零售单号
 */
export function getRetailDetail(saleOrderCode) {
  return request({
    url: `/call-center/api/v1/topInfo/retailDetail/${saleOrderCode}`,
    method: 'POST'
  })
}

/**
 * 分页查询零售订单信息
 * @param {obj} data 查询数据
 */
export function getRetailOrders(params, data = {}) {
  return request({
    url: `/call-center/api/v1/topInfo/retailOrders`,
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    params: params,
    data
  })
}

